<?php

namespace app\python\validate;
use app\common\RootValidate;

class TaskValidate extends RootValidate
{
    protected $rule = [
        'catId' => 'require|number|gt:0',
        'sourceId' => 'require|number|gt:0',
        'title' => 'require',
        'link' => 'require',
        'content' => 'require|array'
    ];

    protected $scene = [
        'add' => ['catId', 'sourceId', 'title', 'link', 'content']
    ];
}